import {request} from "@/utils/request";
import type {PageResult} from "@/types/PageResult";
import type {HotAnimalItem} from "@/types/hot";
import type {HotSortType} from "@/enum/hotSortType";

/**
 * 获取热搜列表
 *
 */
export const getHotListApi = (type: HotSortType, page: number, pageSize: number) => {
    return request<PageResult<HotAnimalItem[]>>({
        method: 'GET',
        url: `/page/hot?type=${type}`,
        data: {
            page,
            pageSize
        }
    })
}